package com.sxbbc.common.core.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sxbbc.common.basics.utils.statics.StaticUtils;
import com.sxbbc.common.core.entity.jz.ProcSpec;
import com.sxbbc.common.core.mapper.jz.ProcSpecMapper;
import com.sxbbc.common.core.service.IProcSpecService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 产品规格主表 服务实现类
 * </p>
 *
 * @author leehao
 * @since 2019-04-30
 */
@Service
public class ProcSpecServiceImpl extends ServiceImpl<ProcSpecMapper, ProcSpec> implements IProcSpecService {

    @Override
    public List<?> queryProductCategoryList(Integer pid, Integer type, Integer targetId, Integer flag) {
        List<?> list = null;
        switch (flag){
            case 1:

            case 2:
            case 3:
            default:
                break;
        }
        return null;
    }

    @Override
    public List<ProcSpec> querySpecificationsList(QueryWrapper<Object> wrapper) {
        wrapper.eq("status", StaticUtils.STATUS_YES).eq("type",1);
        return null;
    }
}
